package com.wang.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller//被spring容器接管
public class Controller1 {
    @RequestMapping("/c")
    public String c1(Model model){
        String result="ww";
        model.addAttribute("msg",result);
        return "controller";
    }
}
